<?php /* Smarty version 2.3.0, created on 2011-08-18 00:15:19
         compiled from Default/edit_survey_questions.tpl */ ?>
<?php $this->_load_plugins(array(
array('modifier', 'unescape', 'Default/edit_survey_questions.tpl', 34, false),)); ?><table align="center" width="953" border="0" cellpadding="0" cellspacing="0">
 
  <!--DWLayoutTable-->
  <tr>
    <td width="15" height="162" valign="top" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="936" valign="top"><table   width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="834" height="25">&nbsp;</td>
            <td width="102">&nbsp;</td>
          </tr>
      <tr>
        <td height="104" valign="top"><table width="100%" border="1" cellpadding="1" cellspacing="2" bordercolor="#999999">
          <!--DWLayoutTable-->
          <tr>
            <td width="458" rowspan="2" align="center" valign="middle"><strong>Texto de la Pregunta </strong></td>
                  <td height="28" colspan="3" align="center" valign="top"><strong>Opciones</strong><br />
                  (marque la cajita y presione en el boton para eliminar)</td>
                </tr>
          <tr>
            <td width="116" height="18" align="center" valign="middle"><strong>Eliminar</strong></td>
                  <td width="116" align="center" valign="middle"><strong>Editar</strong></td>
                  <td width="116" align="center" valign="middle"><strong>Mover</strong></td>
                </tr>
          
           <?php if (isset($this->_sections["p"])) unset($this->_sections["p"]);
$this->_sections["p"]['name'] = "p";
$this->_sections["p"]['loop'] = is_array($this->_tpl_vars['data']['qid']) ? count($this->_tpl_vars['data']['qid']) : max(0, (int)$this->_tpl_vars['data']['qid']);
$this->_sections["p"]['show'] = true;
$this->_sections["p"]['max'] = $this->_sections["p"]['loop'];
$this->_sections["p"]['step'] = 1;
$this->_sections["p"]['start'] = $this->_sections["p"]['step'] > 0 ? 0 : $this->_sections["p"]['loop']-1;
if ($this->_sections["p"]['show']) {
    $this->_sections["p"]['total'] = $this->_sections["p"]['loop'];
    if ($this->_sections["p"]['total'] == 0)
        $this->_sections["p"]['show'] = false;
} else
    $this->_sections["p"]['total'] = 0;
if ($this->_sections["p"]['show']):

            for ($this->_sections["p"]['index'] = $this->_sections["p"]['start'], $this->_sections["p"]['iteration'] = 1;
                 $this->_sections["p"]['iteration'] <= $this->_sections["p"]['total'];
                 $this->_sections["p"]['index'] += $this->_sections["p"]['step'], $this->_sections["p"]['iteration']++):
$this->_sections["p"]['rownum'] = $this->_sections["p"]['iteration'];
$this->_sections["p"]['index_prev'] = $this->_sections["p"]['index'] - $this->_sections["p"]['step'];
$this->_sections["p"]['index_next'] = $this->_sections["p"]['index'] + $this->_sections["p"]['step'];
$this->_sections["p"]['first']      = ($this->_sections["p"]['iteration'] == 1);
$this->_sections["p"]['last']       = ($this->_sections["p"]['iteration'] == $this->_sections["p"]['total']);
?>
            <form method="GET" action="<?php echo $this->_tpl_vars['conf']['html']; ?>
/edit_survey.php">
            <input type="hidden" name="mode" value="<?php echo $this->_tpl_vars['data']['mode_edit_question']; ?>
">
            <input type="hidden" name="sid" value="<?php echo $this->_tpl_vars['data']['sid']; ?>
">
          <tr>
            <td height="33" valign="middle">
			<input type="hidden" name="qid" value="<?php echo $this->_tpl_vars['data']['qid'][$this->_sections['p']['index']]; ?>
">
			<span class="izq">
			<?php echo $this->_run_mod_handler('unescape', true, $this->_tpl_vars['data']['question'][$this->_sections['p']['index']]); ?>

			<?php if (isset($this->_sections["show_edep"])) unset($this->_sections["show_edep"]);
$this->_sections["show_edep"]['name'] = "show_edep";
$this->_sections["show_edep"]['loop'] = is_array("1") ? count("1") : max(0, (int)"1");
$this->_sections["show_edep"]['show'] = (bool)$this->_tpl_vars['data']['show_edep'][$this->_sections['p']['index']];
$this->_sections["show_edep"]['max'] = $this->_sections["show_edep"]['loop'];
$this->_sections["show_edep"]['step'] = 1;
$this->_sections["show_edep"]['start'] = $this->_sections["show_edep"]['step'] > 0 ? 0 : $this->_sections["show_edep"]['loop']-1;
if ($this->_sections["show_edep"]['show']) {
    $this->_sections["show_edep"]['total'] = $this->_sections["show_edep"]['loop'];
    if ($this->_sections["show_edep"]['total'] == 0)
        $this->_sections["show_edep"]['show'] = false;
} else
    $this->_sections["show_edep"]['total'] = 0;
if ($this->_sections["show_edep"]['show']):

            for ($this->_sections["show_edep"]['index'] = $this->_sections["show_edep"]['start'], $this->_sections["show_edep"]['iteration'] = 1;
                 $this->_sections["show_edep"]['iteration'] <= $this->_sections["show_edep"]['total'];
                 $this->_sections["show_edep"]['index'] += $this->_sections["show_edep"]['step'], $this->_sections["show_edep"]['iteration']++):
$this->_sections["show_edep"]['rownum'] = $this->_sections["show_edep"]['iteration'];
$this->_sections["show_edep"]['index_prev'] = $this->_sections["show_edep"]['index'] - $this->_sections["show_edep"]['step'];
$this->_sections["show_edep"]['index_next'] = $this->_sections["show_edep"]['index'] + $this->_sections["show_edep"]['step'];
$this->_sections["show_edep"]['first']      = ($this->_sections["show_edep"]['iteration'] == 1);
$this->_sections["show_edep"]['last']       = ($this->_sections["show_edep"]['iteration'] == $this->_sections["show_edep"]['total']);
?>
			<br />
			Dependencies:
			<?php if (isset($this->_sections["dep"])) unset($this->_sections["dep"]);
$this->_sections["dep"]['name'] = "dep";
$this->_sections["dep"]['loop'] = is_array($this->_tpl_vars['data']['edep_option'][$this->_sections['p']['index']]) ? count($this->_tpl_vars['data']['edep_option'][$this->_sections['p']['index']]) : max(0, (int)$this->_tpl_vars['data']['edep_option'][$this->_sections['p']['index']]);
$this->_sections["dep"]['show'] = (bool)$this->_tpl_vars['data']['edep_option'][$this->_sections['p']['index']];
$this->_sections["dep"]['max'] = $this->_sections["dep"]['loop'];
$this->_sections["dep"]['step'] = 1;
$this->_sections["dep"]['start'] = $this->_sections["dep"]['step'] > 0 ? 0 : $this->_sections["dep"]['loop']-1;
if ($this->_sections["dep"]['show']) {
    $this->_sections["dep"]['total'] = $this->_sections["dep"]['loop'];
    if ($this->_sections["dep"]['total'] == 0)
        $this->_sections["dep"]['show'] = false;
} else
    $this->_sections["dep"]['total'] = 0;
if ($this->_sections["dep"]['show']):

            for ($this->_sections["dep"]['index'] = $this->_sections["dep"]['start'], $this->_sections["dep"]['iteration'] = 1;
                 $this->_sections["dep"]['iteration'] <= $this->_sections["dep"]['total'];
                 $this->_sections["dep"]['index'] += $this->_sections["dep"]['step'], $this->_sections["dep"]['iteration']++):
$this->_sections["dep"]['rownum'] = $this->_sections["dep"]['iteration'];
$this->_sections["dep"]['index_prev'] = $this->_sections["dep"]['index'] - $this->_sections["dep"]['step'];
$this->_sections["dep"]['index_next'] = $this->_sections["dep"]['index'] + $this->_sections["dep"]['step'];
$this->_sections["dep"]['first']      = ($this->_sections["dep"]['iteration'] == 1);
$this->_sections["dep"]['last']       = ($this->_sections["dep"]['iteration'] == $this->_sections["dep"]['total']);
?>
			 <div style="margin-left:5%;">
                      &bull; <?php echo $this->_tpl_vars['data']['edep_option'][$this->_sections['p']['index']][$this->_sections['dep']['index']]; ?>
 if question <?php echo $this->_tpl_vars['data']['edep_qnum'][$this->_sections['p']['index']][$this->_sections['dep']['index']]; ?>

                      is: <?php echo $this->_tpl_vars['data']['edep_value'][$this->_sections['p']['index']][$this->_sections['dep']['index']]; ?>

             </div>
			<?php endfor; endif; ?>
            <?php endfor; endif; ?>
			</span>
			</td>
			<?php if (isset($this->_sections["options"])) unset($this->_sections["options"]);
$this->_sections["options"]['name'] = "options";
$this->_sections["options"]['loop'] = is_array("1") ? count("1") : max(0, (int)"1");
$this->_sections["options"]['show'] = (bool)$this->_tpl_vars['data']['page_break'][$this->_sections['p']['index']];
$this->_sections["options"]['max'] = $this->_sections["options"]['loop'];
$this->_sections["options"]['step'] = 1;
$this->_sections["options"]['start'] = $this->_sections["options"]['step'] > 0 ? 0 : $this->_sections["options"]['loop']-1;
if ($this->_sections["options"]['show']) {
    $this->_sections["options"]['total'] = $this->_sections["options"]['loop'];
    if ($this->_sections["options"]['total'] == 0)
        $this->_sections["options"]['show'] = false;
} else
    $this->_sections["options"]['total'] = 0;
if ($this->_sections["options"]['show']):

            for ($this->_sections["options"]['index'] = $this->_sections["options"]['start'], $this->_sections["options"]['iteration'] = 1;
                 $this->_sections["options"]['iteration'] <= $this->_sections["options"]['total'];
                 $this->_sections["options"]['index'] += $this->_sections["options"]['step'], $this->_sections["options"]['iteration']++):
$this->_sections["options"]['rownum'] = $this->_sections["options"]['iteration'];
$this->_sections["options"]['index_prev'] = $this->_sections["options"]['index'] - $this->_sections["options"]['step'];
$this->_sections["options"]['index_next'] = $this->_sections["options"]['index'] + $this->_sections["options"]['step'];
$this->_sections["options"]['first']      = ($this->_sections["options"]['iteration'] == 1);
$this->_sections["options"]['last']       = ($this->_sections["options"]['iteration'] == $this->_sections["options"]['total']);
?>
                  <td style="text-align:center;" colspan="3">
                    <input type="hidden" name="page_break" value="1">
                    <input type="submit" name="delete_question" value="Delete">
                  </td>
                <?php endfor; else: ?>
                  <td align="center" valign="middle"><input type="checkbox" name="del_qid" value="<?php echo $this->_tpl_vars['data']['qid'][$this->_sections['p']['index']]; ?>
">
                    <input type="submit" name="delete_question" value="Eliminar"></td>
                  <td align="center" valign="middle"><input type="submit" name="edit_question" value="Editar"></td>
                  <td align="center" valign="middle"><input type="submit" name="move_up" value="&nbsp;&uarr;&nbsp;" title="mueva la pregunta hacia arriba">
                    <input type="submit" name="move_down" value="&nbsp;&darr;&nbsp;" title="mueva la pregunta hacia abajo"></td>
					 <?php endif; ?>
                </tr>
				</form>
				<?php endfor; else: ?>
          <tr>
		  
            <td height="15" colspan="4" valign="top">No Existe Preguntas</td>
                </tr>
          <?php endif; ?>
          
          
          </table></td>
            <td>&nbsp;</td>
          </tr>
      <tr>
        <td height="30">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>

    </table></td>
  </tr>
 
</table>